package cn.cai.pethome.emp.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.cai.pethome.base.domain.BaseDomain;
import cn.cai.pethome.dept.domain.Department;
import lombok.Data;

@Data
public class Employee extends BaseDomain {

    @Excel(name = "管理人员")
    private String username;
    @Excel(name = "邮箱")
    private String email;
    @Excel(name = "电话")
    private String phone;
    @Excel(name = "密码")
    private String password;
    @Excel(name = "确认密码")
    private String comfirmPassword;

    private String salt;
    private Integer age;
    //状态：0待审核 1审核通过待激活 2正常 3驳回 4拒绝
    private Integer state = 0;
    private Long department_id;
    private Long logininfo_id;
    private Long shop_id;

    private Department department;

    public Employee() {
    }

    public Employee(String username, String email, String phone, String password, String comfirmPassword) {
        this.username = username;
        this.email = email;
        this.phone = phone;
        this.password = password;
        this.comfirmPassword = comfirmPassword;
    }
}

